<?php
    class connectDB{             
        /*
        *   connect database of forum -stco.vn
        *   database name: forum
        */
        public function connDB_VBB(){      
            $connect = mysql_connect ('localhost','scn', 'clgt#789') 
            or die ( "Error 1 : " . mysql_error () );                                 
            $conn = mysql_select_db('forum');
        }     


        /*
        *   connect database of cms - stco.vn
        *   database name:    
        */
        public function connDB_CMS(){
            $connect = mysql_connect ('localhost','scn1', 'clgt#987')  
            or die ( "Error 1 : " . mysql_error () );                               
            mysql_select_db('cms_stco');
        }           
    }       
?>
